<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:x="http://schemas.microsoft.com/xps/2005/06/resourcedictionary-key">


  <!-- Define decimal format -->
  <xsl:decimal-format name="pt-br-Decimal" grouping-separator="." digit="#" zero-digit="0" decimal-separator="," />

  
  
  <!-- StyleSttings ********************************************  -->
  <!-- Defines the style attributes for the document.             -->
  <!-- ***********************************************************-->
  <xsl:template name="StyleSettings">
    <FlowDocument.Resources>

      <SolidColorBrush x:Key="ToDoBarFill" Color="Red"/>
      <SolidColorBrush x:Key="WorkingBarFill" Color="Yellow"/>
      <SolidColorBrush x:Key="DoneBarFill" Color="Transparent"/>
      
      <Style x:Key="TaskAlertTable" TargetType="Table">
        <Setter Property="Background" Value="Yellow"/>
        <Setter Property="Foreground" Value="Red"/>
      </Style>

      <Style x:Key="TaskAlertCell" TargetType="TableCell">
        <Setter Property="Padding" Value="5,3,5,3"/>
        <Setter Property="Background" Value="Yellow"/>
        <Setter Property="Foreground" Value="Red"/>
      </Style>

      <Style x:Key="BadBalanceCell" TargetType="TableCell">
        <Setter Property="Padding" Value="5,3,5,3"/>
        <Setter Property="Foreground" Value="Red"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
      </Style>
      <Style x:Key="GoodBalanceCell" TargetType="TableCell">
        <Setter Property="Padding" Value="5,3,5,3"/>
        <Setter Property="Foreground" Value="Green"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
      </Style>
      <Style x:Key="NormalBalanceCell" TargetType="TableCell">
        <Setter Property="Padding" Value="5,3,5,3"/>
        <Setter Property="Foreground" Value="Black"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
      </Style>

      <Style x:Key="BacklogItemDone" TargetType="Span">
        <Setter Property="Background" Value="LightGreen"/>
        <Setter Property="Foreground" Value="DarkGreen"/>
      </Style>

      <Style x:Key="BacklogItemWorking" TargetType="Span">
        <Setter Property="Background" Value="Yellow"/>
        <Setter Property="Foreground" Value="Orange"/>
      </Style>

      <Style x:Key="BacklogItemRequired" TargetType="Span">
        <Setter Property="Background" Value="Pink"/>
        <Setter Property="Foreground" Value="Red"/>
      </Style>

      <Style x:Key="BacklogItemCanceled" TargetType="Span">
        <Setter Property="Background" Value="White"/>
        <Setter Property="Foreground" Value="Black"/>
      </Style>

      <Style TargetType="Paragraph">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="10"/>
      </Style>

      <Style x:Key="TitleParagraph" TargetType="Paragraph">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="Margin" Value="0,10,0,5"/>
      </Style>

      <Style x:Key="SubTitleParagraph" TargetType="Paragraph">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="12"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="Margin" Value="0,10,0,5"/>
      </Style>

      <Style x:Key="TotalSumParagraph" TargetType="Paragraph">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="Margin" Value="0,10,5,5"/>
        <Setter Property="TextAlignment" Value="Right"/>
      </Style>

      <Style x:Key="SumItemParagraph" TargetType="Paragraph">
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="10"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="TextAlignment" Value="Right"/>
      </Style>

      <Style x:Key="HeaderRow" TargetType="TableRow">
        <Setter Property="Background" Value="Black"/>
        <Setter Property="Foreground" Value="White"/>        
      </Style>

      <Style x:Key="GroupRow" TargetType="TableRow">
        <Setter Property="Background" Value="#DDDDDD"/>
        <Setter Property="Foreground" Value="Black"/>
      </Style>

      <Style TargetType="Table">
        <Setter Property="CellSpacing" Value="0"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="Margin" Value="0,0,0,5"/>
      </Style>

      <Style TargetType="TableCell">
        <Setter Property="Padding" Value="5,3,5,3"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="BorderBrush" Value="Black"/>
      </Style>

      <Style x:Key="NormalCell" TargetType="TableCell">
        <Setter Property="Padding" Value="5,3,5,3"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="BorderBrush" Value="Black"/>
      </Style>

      <Style x:Key="PageHeaderTable" TargetType="Table">
        <Setter Property="Background" Value="#DDDDDD"/>
      </Style>

      <Style x:Key="HeaderCell" TargetType="TableCell">
        <Setter Property="Background" Value="Black"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="BorderBrush" Value="Black"/>
      </Style>

      <Style x:Key="GroupCell" TargetType="TableCell">
        <Setter Property="Background" Value="#DDDDDD"/>
        <Setter Property="Foreground" Value="Black"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="BorderBrush" Value="Black"/>
      </Style>

      <Style x:Key="NoBorderTable" TargetType="Table">
        <Setter Property="CellSpacing" Value="0"/>
        <Setter Property="BorderBrush" Value="White"/>
        <Setter Property="BorderThickness" Value="0,0,0,0"/>
        <Setter Property="Padding" Value="0,0,0,0"/>
        <Setter Property="Margin" Value="0,0,0,0"/>
      </Style>

      <Style x:Key="NoBorderCell" TargetType="TableCell">
        <Setter Property="BorderThickness" Value="0,0,0,0"/>
        <Setter Property="Padding" Value="0,0,0,0"/>        
      </Style>

      <Style x:Key="AlternateCell1" TargetType="TableCell">
        <Setter Property="Background" Value="#FFFFFF"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
      </Style>

      <Style x:Key="AlternateCell2" TargetType="TableCell">
        <Setter Property="Background" Value="#EEEEEE"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
      </Style>

      <Style x:Key="CurrentCell" TargetType="TableCell">
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="Background" Value="Yellow"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
      </Style>

      <Style x:Key="BacklogItemDoneCell" TargetType="TableCell">
        <Setter Property="Background" Value="LightGreen"/>
        <Setter Property="Foreground" Value="DarkGreen"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
      </Style>

      <Style x:Key="BacklogItemWorkingCell" TargetType="TableCell">
        <Setter Property="Background" Value="Yellow"/>
        <Setter Property="Foreground" Value="Orange"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
      </Style>

      <Style x:Key="BacklogItemRequiredCell" TargetType="TableCell">
        <Setter Property="Background" Value="Pink"/>
        <Setter Property="Foreground" Value="Red"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
      </Style>

      <Style x:Key="BacklogItemCanceledCell" TargetType="TableCell">
        <Setter Property="Background" Value="White"/>
        <Setter Property="Foreground" Value="Black"/>
        <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
        <Setter Property="BorderBrush" Value="Black"/>
        <Setter Property="Padding" Value="5,3,5,3"/>
      </Style>



    </FlowDocument.Resources>
  </xsl:template>



</xsl:stylesheet>

